Fix the row number mistakenly reported by pos_visible_p in rare cases.
authorEli Zaretskii <eliz@gnu.org>
Tue, 9 Sep 2014 15:04:35 +0000 (18:04 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 9 Sep 2014 15:04:35 +0000 (18:04 +0300)
commit7a6e116f08b3f49363acf81c5c1667f5cf32b844
treeea48c31dde2d601458c3bc3902c9788d01df8996
parent79e4a89fd1e2088fc9f5bc94861f459adc4cd8ed
Fix the row number mistakenly reported by pos_visible_p in rare cases.

 src/xdisp.c (pos_visible_p): Properly save and restore the iterator
 state around the call to line_bottom, since it can move the
 iterator to another screen line.  This fixes off-by-one errors in
 the reported row in some rare cases.
src/ChangeLog
src/xdisp.c